import request from '../uitls/request'
// 文章请求的api
// GET http://localhost:5000/article/ace/5 HTTP/1.1
//查询48小时内的文章
export function getArticleInfo(id) {
    return request.get(`/article/ace/${id}`)
}

//评论内容传入添加
// POST http://localhost:5000/articleRead/com HTTP/1.1
export function putCom(data) {
    return request.post(`/articleRead/com`,data)
}

//通过当前文章Id找到对应的评论以及用户
// GET http://localhost:5000/articleRead/1 HTTP/1.1
export function getAllCom(id) {
    return request.get(`/articleRead/art/${id}`)
}

